﻿using MiniFox.Infrastructure.Attributes;
using MiniFox.Resources;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniFox.Platform.Applications.Models
{
    /// <summary>
    /// 组织机构
    /// </summary>
    [JsonObject]
    public class Organization
    {
        /// <summary>
        /// 组织机构代码/ID（此处为系统内代码，非统一社会信用代码）
        /// </summary>
        [Key]
        [JsonProperty("id")]
        public string ID { get; set; }
        /// <summary>
        /// 组织机构名（企业公司名或其它非盈利单位名称）
        /// </summary>
        [JsonProperty("name")]
        public string Name { get; set; }
        /// <summary>
        /// 组织机构简称
        /// </summary>
        [JsonProperty("name")]
        public string DisplayName { get; set; }
        /// <summary>
        /// 图标(FileID)
        /// </summary>
        [JsonProperty("icon")]
        public string Icon
        {
            get;
            set;
        }
        /// <summary>
        /// 商标(FileID)
        /// </summary>
        [JsonProperty("logo")]
        public string Logo
        {
            get;
            set;
        }
        /// <summary>
        /// 组织机构描述
        /// </summary>
        [JsonProperty("description")]
        public string Description
        {
            get;
            set;
        }
        /// <summary>
        /// 默认主题
        /// </summary>
        [JsonProperty("theme")]
        public string DefaultTheme
        {
            get;
            set;
        }
        /// <summary>
        /// 积分
        /// </summary>
        [JsonProperty("score")]
        public int Score
        {
            get;
            set;
        }
    }
}
